package com.xc.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel("购物车")
public class ShoppingDTO {
    /**
     * 主键
     */
    @Id
    @ApiModelProperty("ID")
    private Integer id;
    /**
     * 状态
     */
    @ApiModelProperty("状态：如是否可以购买")
    private Integer enable;
//    private String createTime;
//    private String updateTime;
//    private String remark;
    @ApiModelProperty("课程id")
    private Integer courseId;
    @ApiModelProperty("用户ID")
    private Integer userId;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("课程描述")
    private String describe;
    @ApiModelProperty("价格：精确到分")
    private Integer price;
    @ApiModelProperty("授课老师")
    private String teacher;
    @ApiModelProperty("课程类型：前端，Java，vue等")
    private String type;
    @ApiModelProperty("课程时长:精确到秒")
    private Integer duration;

}
